package com.app.base;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
@SuppressWarnings("unchecked")
public interface BaseDao {
	public void addBachSql(String[] sql);
	public void bachUpdateSql(List<String> sqllist);
	public void bachUpdateSqlAutoCommit(List<String> sqllist);
	public List getList(String sql, Object[] param,String error) throws Exception;
	public Integer getInteger(String sql, Object[] param,String error) throws Exception;
	public double getDouble(String sql, Object[] param,String returnColumn,String error) throws Exception;
	public Connection getNativeConn() throws SQLException;
	public void executeSQL(String sql,String error) throws Exception;
	public int modifyObject(String sql, Object[] param,String error) throws Exception;
	public Map getObject(String sql, Object[] param,String error)throws Exception;
	public double getJDBCDouble(String sql, Object[] param,String returnColumn,String error)throws Exception;
	public String getString(String sql, Object[] param,String returnColumn,String error) throws Exception;
	public Integer getInt(String sql, Object[] param,String returnColumn);
	public Map getObject(String sql, Object[] param);
	public List getList(String sql, Object[] param);
	public Integer getInteger(String sql, Object[] param);
	public double getDouble(String sql, Object[] param,String returnColumn);
	public void executeSQL(String sql);
	public int getTableId(String table,String id);
	public void closeConnection(Connection con);
	public List<String> getArrayString(String sql, Object[] param,String column);
	public int modifyObject(String sql, Object[] param);
	public String getString(String sql, Object[] param,String returnColumn);
	public String getStringArray(String sql, Object[] param,String returnColumn);
	public String getStringArray2(String sql, Object[] param,String returnColumn);
	public String getIntArray(String sql, Object[] param,String returnColumn);
}
